package com.forum.pojo.confession;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Tsing
 */
@TableName("confession_wall")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConfessionWall {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer publisherId;
    private String content;
    private String images;
    private String createTime;
    private String summary;
    @TableLogic(value = "1",delval = "0")
    private Integer isDelete;
    private Integer browse;

    public ConfessionWall(Integer publisherId,String content,String images,String summary){
        this.publisherId=publisherId;
        this.content=content;
        this.images=images;
        this.summary=summary;
    }
}